.certificate-box {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* 这里设置为wrap */
    gap: 8px;

    .certificate-succee {
        background-color: var(--Colors-Use-Green-Bg);
    }

    .certificate-fail {
        background-color: var(--Colors-Use-Red-Bg);
    }

    .certificate-card-item {
        border: 1px solid var(--Colors-Use-Neutral-Border);
        border-radius: 4px;
        padding: 2px;

        &:hover {
            border: 1px solid var(--Colors-Use-Main-Primary);
        }

        .certificate-card {
            width: 104px;
            height: 136px;
            border-radius: 4px;

            position: relative;

            .decorate {
                position: absolute;
                right: 0px;
            }

            .union {
                position: absolute;
                bottom: 4px;
                right: 4px;
            }

            .card-hide {
                width: 0;
                height: 0;
                border-left: 17px solid transparent;
                border-right: 17px solid transparent;
                border-bottom: 17px solid var(--Colors-Use-Neutral-Border);
                position: absolute;
                right: -12px;
                top: -3px;
                transform: rotate(45deg);
            }

            .fail-main {
                display: flex;
                align-items: center;
                flex-direction: column;
                padding: 16px 20px 18px;

                .title {
                    color: var(--Colors-Use-Neutral-Text-1-Title);
                    text-align: center;
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 20px;
                    margin-bottom: 8px;
                }

                .content {
                    color: var(--Colors-Use-Error-Primary);
                    font-size: 12px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 16px;
                    margin-bottom: 8px;
                }

                &:hover {
                    .close {
                        display: block;
                    }
                }
            }

            .success-main {
                display: flex;
                align-items: center;
                flex-direction: column;
                padding: 16px 20px 18px;

                .title {
                    color: var(--Colors-Use-Neutral-Text-1-Title);
                    text-align: center;
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 20px;
                    margin-bottom: 8px;
                }

                .content {
                    color: var(--Colors-Use-Neutral-Text-3-Secondary);
                    font-size: 12px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 16px;
                    margin-bottom: 8px;
                }

                .password {
                    color: var(--Colors-Use-Neutral-Text-1-Title);
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 20px;
                }

                &:hover {
                    .close {
                        display: block;
                    }
                }
            }

        }

        &-footer {
            display: flex;
            gap: 8px;
            justify-content: center;
            padding: 4px 0;

            .icon-cog {
                svg {
                    width: 18px;
                    height: 18px;
                    color: var(--Colors-Use-Neutral-Text-3-Secondary);
                    cursor: pointer;

                    &:hover {
                        color: var(--Colors-Use-Main-Primary);
                    }
                }
            }

            .icon-trash {
                svg {
                    width: 18px;
                    height: 18px;
                    color: var(--Colors-Use-Error-Primary);
                    cursor: pointer;
                }
            }
        }
    }
}

.form-rule-code-customize-describe {
    color: var(--Colors-Use-Neutral-Text-1-Title);
    position: absolute;
    font-size: 14px;
    font-weight: 400;
    transform: translate(32px, 10px);
}

.form-rule-code-customize-item {
    margin-top: 38px;
}

.form-rule-body {
    display: flex;
    align-items: center;

    .form-rule {
        height: 28px;
        width: 100%;
        background: var(--Colors-Use-Basic-Background);
        border: 1px solid var(--Colors-Use-Neutral-Border);
        color: var(--Colors-Use-Neutral-Text-1-Title);
        border-radius: 4px;
        display: flex;
        align-items: center;
        cursor: pointer;

        &:hover {
            border-color: var(--Colors-Use-Main-Primary);
        }

        &:focus,
        &:active {
            box-shadow: 0 0 0 2px var(--Colors-Use-Main-Focus);
        }

        .form-rule-text {
            padding: 6px 12px;
            flex: 1;
            font-size: 14px;
        }

        .form-rule-icon {
            width: 33px;
            height: 26px;
            background: var(--Colors-Use-Neutral-Bg-Hover);
            display: flex;
            align-items: center;
            justify-content: center;
            border-left: 1px solid var(--Colors-Use-Neutral-Border);
            border-radius: 0px 4px 4px 0px;
            cursor: pointer;

            &:hover {
                svg {
                    color: var(--Colors-Use-Main-Primary);
                }
            }

            svg {
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }
        }
    }
}

.ntlm-config-drawer {
    :global {
        .ant-drawer-body {
            padding: 0;
            overflow: hidden;
        }
    }

    .heard-title {
        display: flex;
        gap: 8px;

        .title {
            font-weight: 600;
            font-size: 14px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
            height: 20px;
            line-height: 20px;
        }

        .table-total {
            font-weight: 400;
            font-size: 12px;
            color: var(--Colors-Use-Neutral-Disable);

            span {
                color: var(--Colors-Use-Main-Primary);
            }
        }
    }

    .heard-right-operation {
        display: flex;
        justify-content: flex-end;
        align-items: center;

        .button-text:first-child {
            margin-right: 0;
        }

        .button-create,
        .button-save {
            margin-right: 8px;
        }

        .icon-remove {
            color: var(--Colors-Use-Neutral-Disable);
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;

            svg {
                width: 16px;
                height: 16px;
            }

            :hover {
                color: var(--Colors-Use-Main-Hover);
            }
        }
    }

    .ntlm-config-table {
        height: 100%;
        padding: 4px 8px 16px;

        .table-action-icon {
            padding: 0 4px;
            display: flex;
            align-items: center;

            .action-icon {
                svg {
                    &:hover {
                        color: var(--Colors-Use-Main-Primary);
                    }
                }
            }

            .action-icon-edit-disabled {
                svg {
                    color: var(--Colors-Use-Neutral-Disable);
                    cursor: not-allowed;

                    &:hover {
                        color: var(--Colors-Use-Neutral-Disable);
                    }
                }
            }

            .action-icon-ban-disabled {
                svg {
                    color: var(--Colors-Use-Main-Primary);
                }
            }

            span {
                padding: 0 12px;
                border-right: 1px solid var(--Colors-Use-Neutral-Border);
                color: var(--Colors-Use-Neutral-Text-1-Title);

                &:first-child {
                    padding-left: 0;
                }
            }

            .icon-trash {
                color: var(--Colors-Use-Error-Primary);
            }
        }
    }
}

.config-select-path {
    color: var(--Colors-Use-Main-Primary);
    font-size: 12px;
    cursor: pointer;
}

.ai-sort-box {
    width: 300px;
}

.ai-sort-content {
    .ai-sort-describe {
        color: var(--Colors-Use-Neutral-Text-1-Title);
    }

    .menu-list {
        border-radius: 4px;
        border: 1px solid var(--Colors-Use-Neutral-Border);
        overflow: auto;
        flex: 1;

        &-item {
            display: flex;
            padding: 2px 8px 2px 12px;
            justify-content: space-between;
            align-items: center;
            align-self: stretch;
            height: 24px;
            box-sizing: content-box;
            cursor: pointer;

            &-info {
                display: flex;
                align-items: center;

                .input {
                    margin-left: 12px;
                }

                .drag-sort-icon {
                    color: var(--Colors-Use-Neutral-Disable);

                    svg {
                        height: 16px;
                        width: 16px;
                    }
                }

                .title {
                    margin-left: 12px;
                    font-size: 12px;
                    font-weight: 500;
                    line-height: 16px;
                    color: var(--Colors-Use-Neutral-Text-1-Title);
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }

            &:hover {
                border-radius: 4px;
                background: var(--Colors-Use-Neutral-Bg-Hover);

                .form-outlined {
                    display: block;
                }

                .trash-icon {
                    display: block;
                }
            }
        }

        &-item-drag {
            background: var(--Colors-Use-Main-Bg) !important;
            border: 1px solid var(--Colors-Use-Main-Border) !important;
            border-radius: 4px;
            color: var(--Colors-Use-Neutral-Text-1-Title) !important;

            svg {
                color: var(--Colors-Use-Main-Primary) !important;
            }
        }
    }
}

.sort-active-item {
    padding: 2px;
    display: flex;
    justify-content: center;
    border: 1px solid var(--Colors-Use-Neutral-Border);
    margin-bottom: 8px;
}

.config-form-wrapper {
    .config-form {
        padding: 24px 24px 0 24px;
    }

    .config-footer {
        padding: 10px 24px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        border-top: 1px solid var(--Colors-Use-Neutral-Border);
        border-radius: 0 0 4px 4px;
        background: var(--Colors-Use-Neutral-Bg);
    }
}